package cn.edu.xmu.datamining.tangzk.util;

import java.util.Iterator;

/**
 * 
 * @version 2013-8-1
 * @author tangzk
 * @Reviewer
 * 
 */
public class Joiner {

	public final static String on(Iterator<?> iter, String seperator) {
		StringBuilder sb = new StringBuilder();
		if (iter.hasNext()) {
			sb.append(iter.next());
			while (iter.hasNext()) {
				sb.append(seperator);
				sb.append(iter.next());
			}
		}
		return sb.toString();
	}

}
